<!--
    login.php
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<?php 
    session_start();     
    if (isset($_SESSION['k_username']) && $_SESSION['estado'] == "activo") {
     ?>
        <script type="text/javascript"> 
                window.location="/rspinf-usb/Noticias/cargarNoticias.php"; 
        </script>   
<?php
    }
    if(!isset($_SESSION['dir'])){
      $current = $_SERVER['DOCUMENT_ROOT'].'/rspinf-usb';
      $_SESSION["dir"] = $current;
    }
?>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="login-box.css" rel="stylesheet" type="text/css"/>
        <title>Inicio de Sesion</title>
    </head>
    <body>

        <div style="padding: 100px 0 0 250px;">
            <div id="login-box">
                <H2><a href="../index.php" class="title" style="margin-left:0px;">Pinf</a></H2>tu Red Social<br><br>
                <form action="validarUsuario.php" method="post">
                    <div id="login-box-name" style="margin-top:20px;">
                      <b>  Usuario: </b>
                    </div>
                    <div id="login-box-field" style="margin-top:20px;">
                        <input name="usuario" type="text" class="form-login" title="Username" size="30" maxlength="2048" />
                    </div>
                    <div id="login-box-name">
                        <b>  Contraseña: </b>
                    </div>
                    <div id="login-box-field">
                        <input name="password" type="password" class="form-login" title="Password" size="30" maxlength="2048" />
                    </div><br>
                    <span class="login-box-options">
                        <input type="checkbox" name="1" value="1"> Recordarme
                        <a href="#" class = "others" style="margin-left:30px;">Olvidaste tu clave?</a>
                    </span><br><br>
                    <table>
                        <td><input type="image" src="images/login-btn.png" value ="Ingresar" width="103" height="42" style="margin-left:90px;" /></a>
                        </td>
                </form>
                <form action ="../perfil/registro.php">
                        <td><input type="image" src="images/Registrar.png" value ="Ingresar" width="103" height="42" style="margin-left:10px; margin-top:px;" /></a>
                        </td>
                    </table>
                </form>
            </div>
        </div>
    </body>
</html>
